﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditPeronnel.aspx.cs" Inherits="School.Admin.Admin.EditPeronnel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}</style>
    <script>
        function Check() {
            if (document.getElementById("txtLoginName").value == "") {
                alert('用户名不能为空');
                return false;
            }

            var str = /^[A-Za-z0-9]+$/;
            var txtSN1 = document.getElementById("txtLoginName").value;
            if (str.test(txtSN1) == false) {
                alert('用户名只能输入数字和26个英文字母');
                return false;
            }

            if (document.getElementById("txtName").value == "") {
                alert('昵称不能为空');
                return false;
            }

            var str = /^[0-9]*$/;
            var txtSN1 = document.getElementById("txtShcool").value;
            var txtSN2 = document.getElementById("txtUploads").value;
            if (txtSN1 == "") {
                alert('可创建学校的数量不能为空');
                return false;
            }
            if (txtSN1 == "") {
                alert('可上传空间大小的数量不能为空');
                return false;
            }
            if (txtSN1 != "") {
                if (str.test(txtSN1) == false) {
                    alert('可创建学校只能输入数字');
                    return false;
                }
            }
            if (txtSN2 != "") {
                if (str.test(txtSN2) == false) {
                    alert('可上传空间大小只能输入数字');
                    return false;
                }
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30" background="../tab/images/tab_05.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="12" height="30">
                            <img src="../tab/images/tab_03.gif" width="12" height="30" />
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="46%" valign="middle">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="5%">
                                                    <div align="center">
                                                        <img src="../tab/../tab/images/tb.gif" width="16" height="16" /></div>
                                                </td>
                                                <td width="95%" class="STYLE1">
                                                    <span class="STYLE3">你当前的位置</span>：[我的系统]-[修改人员]
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="16">
                            <img src="../tab/images/tab_07.gif" width="16" height="30" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table width="98%" border="0" cellpadding="2" cellspacing="2" class="tableBorder"
                    align="center" style="margin-bottom: 7px;">
                    <tr>
                        <td class="forumRow" align="right" width="17%">
                            用户组：
                        </td>
                        <td class="forumRow">
                            <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr id="tr1" runat="server" visible="false">
                        <td class="forumRow" align="right" width="14%">
                            可创建学校：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtShcool" CssClass="input" Width="80px"></asp:TextBox>
                            个
                        </td>
                    </tr>
                    <tr id="tr2" runat="server" visible="false">
                        <td class="forumRow" align="right" width="14%">
                            可上传总空间大小：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtUploads" CssClass="input" Width="80px"></asp:TextBox>
                            G
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right" width="14%">
                            用户名：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtLoginName" CssClass="input" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            昵称：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtName" CssClass="input" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr runat="server" id="pwd">
                        <td class="forumRow" align="right">
                            密码：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtPWD" TextMode="Password" CssClass="input" Width="250px"
                                autocomplete="off"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            手机：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtPhone" CssClass="input" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <tr>
                                <td class="forumRow" align="right">
                                    头像：
                                </td>
                                <td class="forumRow">
                                    <asp:Image ID="Image1" runat="server" Width="88" Height="88" />
                                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <tr>
                        <td class="forumRow" align="right">
                            QQ：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtQQ" CssClass="input" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            性别：
                        </td>
                        <td class="forumRow">
                            <asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected>男</asp:ListItem>
                                <asp:ListItem Value="0">女</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            生日：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtBirthday" CssClass="input" Width="250px" onfocus="new WdatePicker()"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            地址：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtAddress" CssClass="input" Width="250px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            描述：
                        </td>
                        <td class="forumRow">
                            <asp:TextBox runat="server" ID="txtDescription" CssClass="input" Width="333px" TextMode="MultiLine"
                                Height="133px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                            状态：
                        </td>
                        <td class="forumRow">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                                <asp:ListItem Value="1" Selected>启用</asp:ListItem>
                                <asp:ListItem Value="0">禁用</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="forumRow" align="right">
                        </td>
                        <td class="forumRow">
                            <asp:Button Text=" 提 交 " runat="server" ID="Button1" CssClass="button" OnClientClick="return Check()"
                                OnClick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
